export default {
    namespaced: true,  //开启命名空间
    state: {
        sum: 10
    },
    getters: {
    },
    mutations: {
        add(state, demo) {
            state.sum += demo
        },
    },
    actions: {
        asynShow(content, demo) {
            setTimeout(() => {
                content.commit('add', demo)
            }, 1000);
        }
    },
}